package com.sunkyc.framework.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunkyc.framework.system.entity.SysMenuAncestors;

import java.util.List;

/**
 * <p>
 * 菜单祖级id表 服务类
 * </p>
 *
 * @author sunkyc
 * @since 2022-06-08
 */
public interface SysMenuAncestorsService extends IService<SysMenuAncestors> {


    /**
     * 添加
     */
    int  addMenuAncestors(SysMenuAncestors sysMenuAncestors);

    /**
     * 删除
     */
    int deleByMenuId(Long menuId);


    List<SysMenuAncestors> queryByMenuId(Long menuId);


    Boolean checkedIsChildren(Long menuId,Long parentId);
}
